<%@ page pageEncoding="UTF-8" contentType="text/html; UTF-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>新增用户</title>
    <link rel="stylesheet" href="../css/bootstrap-4.6.0-dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="../css/font-awesome-4.7.0/font-awesome-4.7.0/css/font-awesome.min.css">

</head>
<body>
<%@include file="../resources/nav.jsp" %>
<div class="container-fluid" style="margin-top: 100px;">
    <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-6">
            <form action="${pageContext.request.contextPath}/user/add" method="post">
                <table class="text-center table table-bordered" align="center" width="100%">
                    <tr class="bg-light text-black-50">
                        <th colspan="2"><h3>新增用户</h3></th>
                    </tr>
                    <tr>
                        <td style="width: 150px;">用户名:</td>
                        <td><input class="form-control" placeholder="用户名" type="text" name="username"></td>
                    </tr>
                    <tr>
                        <td>年龄:</td>
                        <td><input class="form-control" placeholder="年龄" type="number" name="age"></td>
                    </tr>
                    <tr>
                        <td>电话:</td>
                        <td><input class="form-control" placeholder="电话" type="text" name="mobile"></td>
                    </tr>
                    <tr>
                        <td>邮箱:</td>
                        <td><input class="form-control" placeholder="邮件" type="text" name="email"></td>
                    </tr>
                    <tr>
                        <td>地址:</td>
                        <td><input class="form-control" placeholder="地址" type="text" name="address"></td>
                    </tr>
                    <tr>
                        <td>状态:</td>
                        <td>
                            <select class="form-control" name="status">
                                <option value="0">冻结</option>
                                <option value="1">激活</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input class="btn btn-outline-warning" type="reset" value="重置">
                            <a class="btn btn-primary" href="${pageContext.request.contextPath}/user/list">返回</a>
                        </td>
                        <td><input class="btn btn-success" style="width: 200px" type="submit" value="添加"></td>
                    </tr>
                </table>
            </form>
        </div>
        <div class="col-md-3"></div>
    </div>
</div>
</body>
</html>
